#ifdef __cplusplus
#define EXTERN_TYPE extern "C"
#else
#define EXTERN_TYPE extern
#endif
#include <windows.h>

#ifdef WIN32
#pragma warning(disable : 4996)
#endif

#include <stdio.h>

// REMEMBER LINKING WITH HID.LIB SETUPAPI.LIB
// jfh TODO some consistent kind of bool
EXTERN_TYPE void libusbhid_set_debug(FILE *);
EXTERN_TYPE int hid_open(HANDLE *,int,int,FILE *debug_stream_arg);
EXTERN_TYPE int online_check_hid_open(HANDLE *,int,int,FILE *debug_stream_arg);
